package cn.tedu._10article.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor //全参
@NoArgsConstructor  //无参
public enum StatusCode {
    //所有枚举类的实例都放在最上面;
    OPERATION_SUCCESS(10100,"操作成功"), //此处用逗号","
    OPERATION_FAILED(10200,"操作失败"),
    USERNAME_PASSWORD_ERROR(10300,"用户名或密码错误"),
    VALIDATED_ERROR(10500,"参数校验失败"),
    NOT_LOGIN(10400,"未登录"),
    THROWABLE_ERROR(1003,"未知异常"),
    USERNAME_EXISTS(1000,"用户名被占用"),
    FILE_TOO_LARGE(10600,"文件太大了");
    private Integer state;
    private String message;
}
